﻿@model Orchard.Layouts.ViewModels.MenuEditorViewModel
@{
    var menuOptions = Model.Menus.Select(x => new SelectListItem {Text = Html.ItemDisplayText(x).ToString(), Value = x.Id.ToString(), Selected = x.Id == Model.CurrentMenuId});
}
<fieldset>
    @Html.LabelFor(m => m.CurrentMenuId, T("For Menu"))
    @Html.DropDownListFor(m => m.CurrentMenuId, menuOptions)
    @Html.Hint(T("Select which menu you want to display"))
</fieldset>
<fieldset>
    @Html.LabelFor(m => m.StartLevel, T("Start Level"))
    @Html.TextBoxFor(m => m.StartLevel, new {@class = "text small"})
    @Html.Hint(T("The level the menu should start at."))
</fieldset>
<fieldset>
    @Html.LabelFor(m => m.StopLevel, T("Levels to display"))
    @Html.TextBoxFor(m => m.StopLevel, new {@class = "text small"})
    @Html.Hint(T("The number of levels to display, \"0\" meaning all levels."))
</fieldset>
<fieldset>
    @Html.CheckBoxFor(m => m.ShowFullMenu)
    @Html.LabelFor(m => m.ShowFullMenu, T("No filter on selected page").Text, new { @class = "forcheckbox" })
    @Html.Hint(T("Check for the menu to be display without filtering the selected current page."))
</fieldset>